<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="./d3.v5.min.js"></script>
</head>

<body>
  <div id="app">

  </div>

  <script>
    //var div = d3.select("div")
    // var div = d3.select("div").select('p');
    // var div = d3.selectAll("div");
    var div = d3.select("#app");
    console.log(div);

    div.attr('class', "container")
      // .attr('style',"")
      .append('span')
      .style('color', 'red')
      .style('font-size', '50px')
      .text('gp16')


  </script>

</body>

</html>